package com.ttg.web.dao;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ttg.common.dto.TagProducer;
import com.ttg.common.entities.BasePage;
import com.ttg.model.pojo.BankCardDataInfo;
import com.ttg.model.vo.VipBindAccountVO;

import java.util.List;
import java.util.Map;

/**
 * @author zhangHongYuan
 * @description
 * @date 2024/4/16 16:43
 */
public interface BankCardDataInfoDao extends IService<BankCardDataInfo> {

    BasePage<VipBindAccountVO> getVipBindCardPage(BasePage<VipBindAccountVO> basePage,String vipId);

    List<BankCardDataInfo> getByCstIdAndDateLast(String cstId);

    BankCardDataInfo getIdByCardNo(String cardNo);

    int countByCardNo(String cardNo);

    int countByCstId(String cstId);


    Map<String, Long> existsMapByBankCards(List<String> existsWhere);

    List<Long> getVipIdsByTags(List<TagProducer> tags, String key);

    Map<String, Long> existsMap(List<Map<String, String>> existsWhere);

    BasePage<BankCardDataInfo> getVipBindAccountPage(BasePage<BankCardDataInfo> page, String vipId);
}
